<template> 
  <router-view></router-view>
</template>

<script>
  import axios from 'axios'
  import {onBeforeMount} from 'vue'
  import {useRouter} from 'vue-router'

  export default{
    setup(){
      const route=useRouter();
      onBeforeMount(async()=>{
        //  let code=await axios.get('http://localhost:3000/login/status').then(res=>res.data.data.code);
        //  if(code==200) 
         route.push({path:'/home'});
      })
    }
  }
</script>

<style>
*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
    font-size: 0.2rem;
      /* font-family: '微软雅黑'; */
}
</style>